/*
 * @Author: mayijun
 * @Date: 2022-06-30 09:48:42
 * @LastEditors: mayijun
 * @LastEditTime: 2022-06-30 14:01:55
 */
/**
 * apiurl枚举
 */
export interface IApiUrls {
  [propName: string]: string | IApiUrls;
}
/**
 * 请求
 */
export interface IRequest {
  pageNum: number;
  pageSize: number;
}
/**
 * 返回
 */
export interface IResponse<T = any> {
  success: boolean;
  code: number;
  msg?: string;
  desc?: string;
  data: T;
}

/**
 *
 */
export interface IUserInfo {
  userName: string;
  userAccount: string;
  email?: string;
  tel?: string;
  tenantId?: number;
  userId?: number;
  userSex?: string;
}
export interface IOperateItem {
  name: string;
  icon: any;
  optionClick: Function;
}
export interface IRouterItem {
  resourceName: string;
  resourceLink: string;
  resourceCode?: string;
  resourcePath?: string;
  resourceIcon?: string;
  default?: boolean;
  childrens?: IRouterItem[];
}
export interface IHeaderConfig {
  showBackSelectPlatform: boolean;
  isCollapse: boolean;
  showCollapse: boolean;
  massage: number;
  userInfo: IUserInfo;
  permission?: IRouterItem[];
  operateoption?: IOperateItem[];
}

export interface IPageConfigVO {
  pageSize: number,
  pageNum: number,
  total: number,
  showTotal: boolean,
  showJumper: boolean,
  pageSizeOptions: number[],
  showPageSize: boolean,
  hideOnSinglePage: boolean
}
